Skip to content

Иванова Алина. Функция каррирования и обратная к ней#8

Open
ialina07 wants to merge 2 commits intomainfrom
hm6
Open

Иванова Алина. Функция каррирования и обратная к ней#8
ialina07 wants to merge 2 commits intomainfrom
hm6

Conversation

@ialina07
Copy link
Owner

No description provided.

@ialina07 ialina07 requested a review from chernishev October 24, 2025 20:08
Comment on lines +3 to +4
if not isinstance(arity, int) or arity < 0:
raise ValueError("Арность должна быть целым неотрицательным числом")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не проверяется случай, когда пользователь указывает арность не соответствующую реальной.
Мы можем написать f_curry = curry(sum3, 100), ошибка появится только при вызове функции f_curry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants